<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Code Prettifier</title>
<link href="prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="prettify.js"></script>
</head>
<body >

<pre class="prettyprint">
package foo;
egfnfgb dhdfv
import java.util.Iterator;
</pre>
<input onclick="prettyPrint()" value="prettyPrint">
<script src="http://sstatic.net/so/Js/wmd.js?v=6016" type="text/javascript"></script>
<script type="text/javascript">
    $(function() { editorReady(0); });
</script>



			<div id="mainbar" style="width:660px">

			    <form id="post-form" action="/questions/ask/submit" method="post">

			        <div class="form-item" style="margin-bottom:-15px; margin-top:-10px">
			            <table style="width:668px">
			                <tr>
			                    <td style="width:50px"><label for="title">Title<span class="form-error"></span></label></td>
			                    <td style="padding-left:5px"><input id="title" name="title" type="text" maxlength="300" tabindex="100" style="width:610px" value=""></td>
			                </tr>

			            </table>
			            <div id="question-suggestions" class="form-item-info" style="width:665px">
			                What's your programming question? Be descriptive.
			            </div>
			        </div>        


			<script src="http://sstatic.net/so/Js/wmd.js?v=6016" type="text/javascript"></script>
			<script type="text/javascript">
			    $(function() { editorReady(0); });
			</script>

			<div id="post-editor">



			    <div id="wmd-container">

			        <div id="wmd-button-bar"></div>
			        <textarea id="wmd-input" name="post-text" cols="92" rows="15" tabindex="101"></textarea>
			    </div>
			    <div id="wmd-form-error"><span class="form-error"></span></div>


			    <div class="community-option">
			        <input id="communitymode" name="communitymode" type="checkbox" >
			        <label for="communitymode" title="community owned posts do not generate any reputation for the owner, have a lower reputation barrier for collaborative editing, and show only a revision history instead of a signature block">community wiki</label>

			    </div>


			    <div id="wmd-preview"></div>

			    <div id="edit-block">
			        <input id="fkey" name="fkey" type="hidden" value="cb385c72aa8c46e066977d063d969c5a">
			        <input id="author" name="author" type="text">
			    </div>
			</div>

			<script id="tageditor" src="http://sstatic.net/so/Js/tageditor.js?v=6016" type="text/javascript"></script>

			<script type="text/javascript">
			$(function() {        	
				bindTagFilterAutoComplete('#tagnames');
			})
			</script>

			<div class="form-item">
			    <label>Tags <span class="form-error"></span></label>
			    <input id="tagnames" name="tagnames" type="text" size="60" value="" tabindex="103">
			    <div class="form-item-info" style="width:640px">
			        Combine multiple words into single-words, space to separate up to 5 tags (python c# ruby)
			    </div>    

			</div>

			<div style="margin-bottom:20px">
			    <h2>
			        <input type="checkbox" id="notify-email" name="notify-email" > Notify 
			        <input id="notify-email-address" name="notify-email-address" disabled="true" type="text" style="width: 260px;" value="keremtiryaki@gmail.com"> daily of any new answers
			    </h2>
			</div>

			<script src="http://sstatic.net/so/Js/tageditor.js?v=6016" type="text/javascript"></script>
			<script src="http://sstatic.net/so/Js/third-party/jquery.typewatch.js" type="text/javascript"></script>

			<script type="text/javascript">
			    $(function() {
			        initEmailNotification();   

			    });

			    function initEmailNotification() {
			        var toggle = function() { $("#notify-email-address").attr('disabled', !$("#notify-email").is(":checked")); };
			        toggle();
			        $("#notify-email").click(function() {
			            toggle();

			        });
			    }

			    function saveEmailNotification(email) {
			        // only post if the email is valid
			        if (!(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i).test(email)) return;

			        var jCheck = $("#notify-email");   
					$.ajax ({
					    type: "POST",
					    url: "/posts/0/update-owner-notification",		    
					    data: { "fkey": fkey, "notifyEmailAddress": email, "notifyEmail": jCheck.is(":checked")},
					    dataType: "json",
					    success: function(result) {   
					        if (!result.success) {
					            var msg = (result.message && result.message.length > 0) ? result.message : "A problem has occurred when changing your notification setttings - please try again";
					            showAjaxError(jCheck.closest('div'), result.message);
					        }
					    }
					});
				}
			</script>


			        <div class="form-submit cbt"><input id="submit-button" type="submit"  value="Post Your Question" tabindex="120"></div>

			    </form>
			</div>


</body>
</html>
